﻿using System;
using Blackbird.Common.Properties;

namespace Blackbird.Common.Exceptions {
    [Serializable]
    public class GraphAlreadyConfiguredException : Exception {
        public GraphAlreadyConfiguredException() { }
        public GraphAlreadyConfiguredException(string message) : base(message) { }
        public GraphAlreadyConfiguredException(string message, Exception inner) : base(message, inner) { }
        protected GraphAlreadyConfiguredException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context) { }

        public static void Throw()
        {
            throw new GraphAlreadyConfiguredException(Resources.GraphAlreadyConfiguredExceptionMessage);
        }
    }
}
